//
//  CJSTNDetailCell.m
//  GoTraveling
//
//  Created by 陈金山 on 15/12/26.
//  Copyright © 2015年 开发华佗. All rights reserved.
//

#import "CJSTNDetailCell.h"
#import "CJSTravelDetailView.h"

@interface CJSTNDetailCell ()

@property (nonatomic, retain) CJSTravelDetailView *travelDV;

@end

@implementation CJSTNDetailCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubView];
    }
    return self;
}

- (void)createSubView {
    
    self.travelDV = [[CJSTravelDetailView alloc] initWithFrame:self.contentView.frame];
    [self.contentView addSubview:self.travelDV];

}

- (void)setImage_url:(NSString *)image_url {
    
    _image_url = image_url;
    
    self.travelDV.photo = self.image_url;
}

@end
